﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 战棋模拟器
{
    class 铁皮恐角龙:Minion
    {
        public 铁皮恐角龙():base()
        {
            Star = 5;
            Attack = 7;
            Health = 7;
            Race = race.beast;
        }


        public override void Doattack(Minion m)
        {
            if(m.Skills[3]==false&&m.Health<Attack&&pool.minionCount<7)
                pool.Spawn(pool, Place + 1, new  铁皮小恐龙());
            base.Doattack(m);
        }


        public override Minion NewOne()
        {
            return new 铁皮恐角龙();
        }
    }


    class 铁皮恐角龙_金色 : 铁皮恐角龙
    {
        public 铁皮恐角龙_金色() : base()
        {
            Attack *= 2;
            Health *= 2;
            count *= 2;
            buff *= 2;
        }

        public override Minion NewOne()
        {
            return new 铁皮恐角龙_金色();
        }


        public override void Doattack(Minion m)
        {
            if (m.Skills[3] == false && m.Health < Attack && pool.minionCount < 7)
                pool.Spawn(pool, Place + 1, new 铁皮小恐龙_金色());
            base.Doattack(m);
        }
    }


}
